package com.naiterui.ehp.bp.domain;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-6-26
 * Time: ����9:50
 * To change this template use File | Settings | File Templates.
 */
@Table(name = "patient_smoke_history")
@Entity
public class PatientSmokeHistory {

    private long id;
    private Integer perdayNum;
    private Integer smokeStart;
    private long patientId;
    private Integer status;

    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", nullable = false, insertable = true, updatable = true, length = 19, precision = 0)
    @Id
    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Column(name = "perday_num", nullable = true, insertable = true, updatable = true, length = 10, precision = 0)
    @Basic
    public Integer getPerdayNum() {
        return this.perdayNum;
    }

    public void setPerdayNum(Integer perdayNum) {
        this.perdayNum = perdayNum;
    }

    @Column(name = "smoke_start", nullable = true, insertable = true, updatable = true, length = 10, precision = 0)
    @Basic
    public Integer getSmokeStart() {
        return this.smokeStart;
    }

    public void setSmokeStart(Integer smokeStart) {
        this.smokeStart = smokeStart;
    }

    @Column(name = "patient_id")
    @Basic
    public long getPatientId() {
        return this.patientId;
    }

    public void setPatientId(long patientId) {
        this.patientId = patientId;
    }

    @Column(name = "status")
    public Integer getStatus() {
        return this.status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
